<div class="mdui-card-content">
<form id="form" method="post"  onsubmit="return f1()">
    <div class="mdui-textfield mdui-textfield-floating-label">
        <label class="mdui-textfield-label">姓名</label>
        <input class="mdui-textfield-input" type="text" required name="name"/>
    </div>

    <div class="mdui-textfield mdui-textfield-floating-label">
        <label class="mdui-textfield-label">身份证号</label>
        <input class="mdui-textfield-input" type="text" required name="code"/>
    </div>

    <div class="mdui-textfield mdui-textfield-floating-label">
        <label class="mdui-textfield-label">手机号</label>
        <input class="mdui-textfield-input" type="tel" maxlength="11" required name="mobile"/>
    </div>

    <div class="mdui-textfield mdui-textfield-floating-label">
        <label class="mdui-textfield-label">学院</label>
        <input class="mdui-textfield-input" type="text" required name="academy"/>
    </div>

    <div class="mdui-textfield mdui-textfield-floating-label">
        <label class="mdui-textfield-label">车牌号</label>
        <input class="mdui-textfield-input" type="text" required name="license"/>
    </div>

    <div class="mdui-textfield mdui-textfield-floating-label">
        <label class="mdui-textfield-label">登录密码</label>
        <input class="mdui-textfield-input" type="password" maxlength="32" required name="pwd"/>
    </div>

    <input type="submit" class="mdui-btn mdui-btn-block mdui-color-pink-accent mdui-ripple mt10" value="添加"></input>
</form>
</div>
<script>
    function f1() {
        loadPost('teacher/add',$("#form").serialize(),"#myContent",false);
        return false;
    }
</script>

